package com.ruoyi.common.core.constant;

/**
 * MQ消息通用常量
 */
public class MqConstants {
    public static final String NOTICE_EXCHANGE_NAME = "notice.topic";
    public static final String NOTICE_INSERT_KEY = "notice.insert";

    // 延迟消息
    public static final String DELAY_EXCHANGE = "trade.delay.topic";
    public static final String DELAY_ORDER_QUEUE = "trade.order.delay.queue";
    public static final String DELAY_ORDER_ROUTING_KEY = "order.query";
    public static final String TOPIC_INSERT_QUEUE = "insert.queue";
    public static final String TOPIC_DELETE_QUEUE = "delete.queue";
    public static final String TOPIC_EXCHANGE = "topic.exchanges";
    public static final String TOPIC_INSERT_ROUTING_KEY = "insert.message";
    public static final String TOPIC_DELETE_ROUTING_KEY = "delete.message";
    public static final String NEWS_EXCHANGE = "news.init.topic";
    public static final String NEWS_ROUTING_KEY = "news.message";
    public static final String NEWS_INIT_EXCHANGE = "news.init.exchange";
    public static final String NEWS_INIT_ROUTING_KEY = "news.init";
    public static final String NEWS_INIT_QUEUE = "news.init.queue";
    // 延迟新闻队列
    public static final String DELAY_NEWS_QUEUE = "delay.news.queue";
    // 延迟新闻交换机
    public static final String DELAY_NEWS_EXCHANGE = "delay.news.exchange";
    // 延迟发布新闻路由key
    public static final String DELAY_PUBLISH_ROUTING_KEY = "delay.publish.news";
    // 删除新闻路由key
    public static final String NEWS_DEL_ROUTING_KEY = "news.delete";
    // 更新新闻路由key
    public static final String NEWS_UDP_ROUTING_KEY = "news.update";
}
